﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MessageCommon.GlobalType;
using MessageCommon.GlobalStructure;

namespace MessageCommon
{
    public class PushMessage
    {
        // 标识号
        public int nSerialNo;
        // 源地址
        public string strSource;
        // 目标地址
        public List<string> strTarget;
        // 推送内容
        public string strMagDepict;
        // 推送类型
        public int enumMessageType;
        // 推送索引
        public string strMessageIndex;
        // 推送优先级
        public int nMessageNo;
        // 录入时间
        public DateTime dtMsgDateTime;
        // 推送状态
        public EnumMessageStatus enumMessageStatus;
        // 消息紧急等级
        public EnumMessageLevel enumMessageLevel;
        // 客户端类型
        public EnumClientType enumClientType;

        public PushMessage()
        {
            Reset();
        }
        public void Reset()
        {
            nSerialNo = 0;
            strSource = string.Empty;
            strTarget = new List<string>();
            strMagDepict = string.Empty;
            enumMessageType = 0;
            strMessageIndex = string.Empty;
            nMessageNo = 0;
            dtMsgDateTime = new DateTime(1900, 01, 01);
            enumMessageStatus = EnumMessageStatus.New;
            enumMessageLevel = EnumMessageLevel.NORMAL;
            enumClientType = EnumClientType.PCClient;
        }
    }

    public class PushMessageList : List<PushMessage> { };
}
